package internal

import (
	"Alpaca/gate"
	"server/conf"
	"server/game"
	"server/msg"
)

type Module struct {
	*gate.Gate
}

func (m *Module) OnInit() {
	m.Gate = &gate.Gate{
		MaxConn:      conf.Server.MaxConn,
		MaxMsgLen:    conf.MaxMsgLen,
		WriteChanLen: conf.Server.WriteChanLen,
		TcpAddr:      conf.Server.TcpAddr,
		Processor:    msg.Processor,
		AgentChanRpc: game.ChanRPC,
	}
}

func (m *Module) OnDestroy() {

}
